#include"processbar.h"

void download(void(*pb)(int))
{
    int count = 0;
    int total = 100;
    while(count <= total)
    {
        pb(count*100/total);
        count++;
        usleep(50000);
    }
    printf("\n");
}

int main()
{
    download(probar);
    return 0;
}
